answer "The NameLock flag of “" & appname & "” is" && it & "."
else
answer it with "Sorry"
end if
end mouseUp
-- part 18 (button)
-- low flags: 00
-- high flags: A002
-- rect: left=108 top=54 right=76 bottom=208
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: SetNameLock
----- HyperTalk script -----
on mouseUp
answer file "Choose a file to work with:"
put it into appname
if appname = "" then exit to hypercard
if getNameLock(appname) then
answer "Change NameLock flag to what?" with "True" or "False"
else
answer "Change NameLock flag to what?" with "False" or "True"
end if
setNameLock appname,it
if the result ≠ "" then answer the result with "Sorry"
end mouseUp
-- part 19 (button)
-- low flags: 00
-- high flags: 2000
-- rect: left=473 top=51 right=83 bottom=511
-- title width / last selected line: 0
-- icon id / first selected line: 15664 / 15664
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name: Home
----- HyperTalk script -----
on mouseUp
visual dissolve to black
visual dissolve to white
visual dissolve to black
visual dissolve
go home
end mouseUp
-- part contents for card part 9
----- text -----
GetNameLock takes one parameter, the pathname of the file you want to examine. SetNameLock takes two parameters, the pathname of the file and TRUE or FALSE indicating your choice of setting. Click on and/or examine the scripts of the buttons above to see how it works!
The NameLock flag specifies that a file cannot be renamed from the Finder and that the file cannot have customized icons assigned to it by users.
A small shareware fee of $5 is requested if you use this external in any “in-house”, shareware or freeware products. The registration fee for development and prototyping of a future commercial product is $10. The registration fee for unlimited commercial use in a SINGLE “for sale” product is $15. The fee for unlimited commercial use with MULTIPLE products is $25. These are life-time registrations. You are entitled to all future shareware updates without further cost.
If you have questions or comments I can be reached through the following:
Jeffrey Donald Iverson CompuServe: 76675,1772
3841 Whispering Way Drive SE #101 AppleLink: ALL.AMERICAN